From: Carlos Garnacho Date: Wed, 2 Feb 2022 16:05:32 +0000 (+0100) Subject: dnd: Make event handler actor reactive X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d32005b3a4ed64365fc0ec6fc389d97c019c0d2f;p=gnome-shell.git dnd: Make event handler actor reactive Even though we coerce events on it through a grab, it does require to be reactive to be considered a keyboard focus. Make it reactive so it can handle key events again. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5005 Part-of: --- diff --git a/js/ui/dnd.js b/js/ui/dnd.js index d6a1f07c8..9fbdf2873 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -45,7 +45,7 @@ let currentDraggable = null; function _getEventHandlerActor() { if (!eventHandlerActor) { - eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 }); + eventHandlerActor = new Clutter.Actor({ width: 0, height: 0, reactive: true }); Main.uiGroup.add_actor(eventHandlerActor); // We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen // when you've grabbed the pointer.